package com.zhouyu;

import com.zhouyu.service.E;
import com.zhouyu.service.F;
import com.zhouyu.service.G;
import com.zhouyu.service.H;
import org.springframework.util.MethodInvoker;

/**
 * @author leimingchao
 * create 2025-05-10 20:06
 */
public class Test5 {

	public static void main(String[] args) {

		Object[] objects = new Object[] {new E()};

		//0
		System.out.println(MethodInvoker.getTypeDifferenceWeight(new Class[] {E.class}, objects));

		//2
		System.out.println(MethodInvoker.getTypeDifferenceWeight(new Class[] {F.class}, objects));

		//4
		System.out.println(MethodInvoker.getTypeDifferenceWeight(new Class[] {G.class}, objects));

		//1
		System.out.println(MethodInvoker.getTypeDifferenceWeight(new Class[] {H.class}, objects));
	}
}
